package cn.darkhorse.device.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 耗材管理
 * </p>
 *
 * @author yangtianqi
 * @since 2024-11-06
 */
@Data
  @TableName("mes_device_consumable")
@ApiModel(value = "MesDeviceConsumable对象", description = "耗材管理")
public class MesDeviceConsumable implements Serializable, TransPojo {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("耗材编码")
      private String code;

      @ApiModelProperty("耗材名称")
      private String name;

      @ApiModelProperty("规格型号")
      private String model;


      @ApiModelProperty("单位")
//      @Trans(type = TransType.DICTIONARY,key = "unit_type")
      private String unit;

      @TableField(exist = false)
      private String unitName;

      @ApiModelProperty("耗材分类")
//      @Trans(type = TransType.SIMPLE,target = MesDeviceConsumableType.class,fields = "typeName" )
      private Long type;

      @TableField(exist = false)
      private String typeName;

      @ApiModelProperty("是否启用")
      private Integer enable;

      @ApiModelProperty("备注")
      private String remark;

    private String createBy;

    private LocalDateTime createTime;


}
